package JavaSEAdvance.day01_extends.d017_homework03;

/**
 * @author Xiao
 * @date 2021/7/15
 */
public abstract class Employee {
    private String id;
    private String name;
    private int age;
    public final void sendMessage () {
        System.out.println("通知：");
        message();
        System.out.println("\t\t\t必胜环球科技有限公司");
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    protected abstract void message();

    public Employee() {
    }

    public Employee(String id, String name, int age) {
        this.id = id;
        this.name = name;
        this.age = age;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}

